//
//  OrderCell.h
//  JiFengDaRen
//
//  Created by guest on 16/1/31.
//  Copyright © 2016年 SH_iOS. All rights reserved.
//

#import <UIKit/UIKit.h>
@class OrderModel;
typedef NS_ENUM(int,status) {
    
     ORDER_WAIT = 1, //待接单
     ORDER_GET = 2,//已接单
     ORDER_STORE_MASTER = 3, //店主代客下单
     ORDER_EXCRP_TRANS = 4, // 派件异常
     ORDER_LOST = 182,// 快件丢失
     ORDER_REFUSE = 196,//已拒绝
     ORDER_TEST_COMPLETED = 197,//测试完成
     ORDER_CANCEL = 198,//订单取消物流人员不能订单取消,只有用户才能申请订单取消
     ORDER_COMPLETED = 199//完成
};
@class OrderCell;
@protocol OrderCellDelegate <NSObject>

-(void)orderCell:(OrderCell *)orderCell state:(NSString *)state orderModel:(OrderModel *)orderModel;


@end
@interface OrderCell : UICollectionViewCell
@property (strong,nonatomic)OrderModel *model;
@property (strong,nonatomic)OrderModel *model2;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderStateLabel;
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *orderId;

@property (weak, nonatomic) IBOutlet UILabel *orderNum;
@property (weak, nonatomic) IBOutlet UILabel *allPrice;
@property (weak, nonatomic) IBOutlet UILabel *date;

@property (weak, nonatomic) IBOutlet UIButton *payBtn;
@property (weak, nonatomic) id<OrderCellDelegate>delegate;
@end
